Dynamic Obstacles Avoidance Using Nonlinearmodel Predictive Control